﻿/***********************************************************************************************
 * 
 * ProjectName: WMSSoft.Lib.Shell
 * 
 * Description: Provides Members needed for Shell functionality
 * 
 * Created:     11.11.2012
 * 
 * Author:      matthias wagler - matthias@WMSSoft.de
 * 
 * Copyright:   Copyright 2012 by WMSSoft.net
 * 
 * License:     GPLv3
 * 
 * History:     11.11.2012 - matthias wagler matthias@WMSSoft.de    -   Created
 * 
 **********************************************************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.InteropServices;

namespace WMSSoft.Lib.Shell
{
    [StructLayout(LayoutKind.Explicit)]
    public struct STRRET
    {
        [FieldOffset(0)]
        public UInt32 uType;						// One of the STRRET_* values

        [FieldOffset(4)]
        public IntPtr pOleStr;						// must be freed by caller of GetDisplayNameOf

        [FieldOffset(4)]
        public IntPtr pStr;							// NOT USED

        [FieldOffset(4)]
        public UInt32 uOffset;						// Offset into SHITEMID

        [FieldOffset(4)]
        public IntPtr cStr;							// Buffer to fill in (ANSI)
    }
}
